package com.football.spwntr;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by thoughtworker on 1/16/14.
 */
public class PopulateParticipantList {
    List<Participant> participantList;

    public PopulateParticipantList() {
        participantList = new ArrayList<Participant>();

        for(int i = 1; i < 15; i++) {
            participantList.add(generatePlayer(i, "The Best"));
        }
        participantList.add(generateCoach());
    }

    public List<Participant> returnParticipantList() {
        return participantList;
    }

    private static Participant generateCoach() {
        return new Coach("Test Coach", 66, "The Best");
    }

    private static Player generatePlayer(int count, String team) {
        return new Player(String.format("Test Player%d",count), 15 + count, count, team);
    }
}
